package edu.suda.LoopCodePlus;

import edu.suda.LoopCodePlus.webSocket.WsSessionManager;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class LoopCodePlusAdminControllerApplication {
    public static void main(String[] args){
        WsSessionManager.init();
        org.springframework.boot.SpringApplication.run(LoopCodePlusAdminControllerApplication.class, args);
    }
    @Bean
    public CommandLineRunner commandLineRunner(ApplicationContext ctx) {
        return args -> {

            System.out.println("webSocket started");


        };
    }
}
